package com.woniuxy.microfixeddepositserver.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.microfixeddepositserver.bean.FixedTimeDepositBean;
import com.woniuxy.microfixeddepositserver.bean.detail.RegularQuery;

import java.util.List;

public interface IFixedDespositService {
    /**
     * 根据id删除该理财产品
     */
    int deleteByPrimaryKey (List<String> checkList);

    /**
     * 新增理财产品
     */
    int insert (FixedTimeDepositBean fixedTimeDepositBean);

    /**
     * 根据id查询理财产品
     */
    FixedTimeDepositBean selectByPrimaryKey (Integer id, Integer status);

    /**
     * 分页查询所有理财产品信息
     *
     * @return
     */
    PageInfo<FixedTimeDepositBean> selectAll (Integer page, Integer size, Integer status,Integer isHot);

    /**
     * 修改理财产品信息
     */
    int updateByPrimaryKey (FixedTimeDepositBean fixedTimeDepositBean);

    /**
     * 上架理财产品
     */
    void recoverFixedDeposit (List<String> list);

    PageInfo<FixedTimeDepositBean> selectAllByQuery ( RegularQuery regularQuery);

    int updateIsHot (RegularQuery regularQuery);

    PageInfo<FixedTimeDepositBean> selectAllProduct (Integer page, Integer size, Integer status);
}
